import request from "@/utils/request.js";

export default {
  // 获取投诉列表
  getComplain() {
    return request({
      url: "complain/complain_list_admin",
      method: "get",
    });
  },
  // 查询投诉
  searchComplain(pojo) {
    return request({
      url: "complain/searchComplain",
      method: "post",
      data: pojo,
    });
  },
  // 处理查询
  dealComplain(id) {
    return request({
      url: "complain/dealComplain",
      method: "put",
      data: { order_id: id },
    });
  },
};
